package com.diligreat.service; 

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.diligreat.domain.Langmodel;
import com.diligreat.mapper.LangmodelMapper;

/**  
 * @Author Bruce 
 * @Date 2012-11-11
 * @Comments
 */
@Service
public class LangmodelService {
	@Autowired
	private LangmodelMapper langmodelMapper;

	public void add(Langmodel langmodel) {
		langmodelMapper.add(langmodel);
		
	}

	public Langmodel get(long id) {
		 return langmodelMapper.get(id);
		
	}

	public void update(Langmodel langmodel) {
		langmodelMapper.update(langmodel);
		
	}

	public void delete(long id) {
		langmodelMapper.delete(id);
		
	}

	public List<Langmodel>  listAll() {
		return langmodelMapper.listAll();
		
	}
}
 